#coding:utf8
# 获取省份信息      GET         areas/infos/
# 获取市,区县信息    GET         areas/infos/pk/

from . import views

from django.conf.urls import url

urlpatterns = [

]


#自动生成url
from rest_framework.routers import DefaultRouter

#1.创建router
router = DefaultRouter()
#2.注册路由
router.register(r'infos',views.AreaViewSet,base_name='')
#3.将路由添加到 urlpatterns
urlpatterns += router.urls







